app.controller('orderContorller', ['$scope', 'orderService', function ($scope,orderService) {

    function list(page){
        orderService.list({
            currentPage: page,
            pageSize: 10
        }).then(function(result){
            $scope.result = result;
        })
    }
    list(1);

    $scope.pageChanged = function(page){
        list(page)
    }
}]);